package com.guigu.xm.lq.service.impl;

import com.guigu.xm.lq.mapper.SysRolesMapper;
import com.guigu.xm.lq.service.SysRolesService;
import com.guigu.xm.pojo.SysRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysRolesServiceImpl implements SysRolesService {
    @Autowired(required = false)
    SysRolesMapper srm;


    @Override
    public SysRoles Addcha(String descn) {
        return srm.Addcha(descn);
    }

    @Override
    public SysRoles DaoShu() {
        return srm.DaoShu();
    }

    @Override
    public List<SysRoles> allRoles() {
        return srm.allRoles();
    }

    @Override
    public int insert2(int rid, String descn) {
        return srm.insert2(rid,descn);
    }

    @Override
    public List<SysRoles> selectAllRoles(String login_id) {
        return srm.selectAllRoles(login_id);
    }
}
